package com.ihr360.payroll.service.salary.jobexecution;

import com.ihr360.job.core.entity.JobExecution;
import com.ihr360.job.core.repository.PageData;

/**
 * @author tomtao
 * @author davidwei
 */
public interface BatchJobExecutionService {
    /**
     * 获取失败的任务
     * @param page
     * @param size
     * @return
     */
    PageData<JobExecution> getFailedJobExecution(int page, int size);

    /**
     * 将获取所有任务
     * @param page
     * @param size
     * @return
     */
    PageData<JobExecution> getJobExecution(int page, int size);

    /**
     * 获取异常任务
     * @param page
     * @param size
     * @return
     */
    PageData<JobExecution> getUnExceptedJobExecution(int page, int size);

    /**
     * 获取执行时间超过一定时间的任务
     * @param page
     * @param size
     * @param minutes
     * @return
     */
    PageData<JobExecution> getLongTimeJobExecution(int page, int size, int minutes);

}
